package com.wanmait.recycle.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.PageInfo;
import com.wanmait.recycle.pojo.History;
import com.wanmait.recycle.pojo.Userinfo;

public interface HistoryMapper {
	
	List<History> findByUserinfo(Userinfo userinfo);
	
	void setUnEnableByTypeAndObjectId(@Param("type")Integer type,@Param("objectId")Integer objectId);

	void setEnableByTypeAndObjectId(@Param("type")Integer type,@Param("objectId") Integer objectId);

	void insertNew(History history);
	
	void deleteByTypeAndObjectId(@Param("type") Integer type,@Param("objectId") Integer objectId);

	List<History> findByUserinfo2(Userinfo userinfo);
}
